<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>{#$title#}</title>
<meta http-equiv="X-UA-Compatible" content="IE=7">


<link href="{#$QISHI.site_template#}css/common.css" rel="stylesheet" type="text/css" />
<link href="{#$QISHI.site_template#}css/user.css" rel="stylesheet" type="text/css" />
<script>
var rate={#$QISHI.payment_rate#};
function show_payment(val)
{
if (val=="") 
{
$("company_payment").style.display="none"; 
return false;
}
else
{
$("company_payment").style.display=""; 
$("show_val").innerHTML="充值金额为<strong style=\"color:#003399\">&nbsp;&nbsp;"+val+"&nbsp;&nbsp;</strong>元，可获得：&nbsp;&nbsp;<span style=\"color: #009900; font-size:22px; font-style:italic\">"+val*rate+"</span>&nbsp;&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}";
}
}
function chk_form()
{
var payment_min={#$QISHI.payment_min#};
if(document.form1.amount.value=="")
{
alert("请输入充值金额！");
return (false);
}
if(document.form1.amount.value<payment_min)
{
alert("单次充值金额不能少于 "+payment_min+" 元")
return (false);
}
//---
var flag = false;
var oRadio = document.getElementsByName("payment_name"); 
var msglen=oRadio.length;
if (msglen==1)
{
if(document.form1.payment_name.checked==true)
{
flag = true;
}
}
else
{
for(i=0;i<msglen;i++)
{
if(document.form1.payment_name[i].checked==true)
{
flag = true;
}
}
}
//----
if (flag == false)
{
    alert("请选择支付方式")
    return (false);
}
return (true);
}
function $(s) {
    return document.getElementById(s);
}
function $$(s) {
    return document.getElementsByName(s);
}
</script>
<body>
{#include file="header.htm"#}
<table width="960" border="0" align="center" cellpadding="0" cellspacing="0" style="margin-top:8px;" >
  <tr>
    <td width="208" valign="top" class="link_bk">
	{#include file="member_company/company_left.htm"#}
	</td>
    <td valign="top"><form id="form1" name="form1" method="post" action="" onsubmit="return chk_form();">
      <table width="100%" border="0" cellpadding="4" cellspacing="0" bgcolor="#FFFFFF" class="user_right_box">
        <tr>
          <td height="22" colspan="2" class="user_right_box_bg"><table width="100%" border="0" cellspacing="0" cellpadding="0">
              <tr>
                <td><span class="right_top_tit" style="padding-left:15px;">申请充值</span></td>
                <td width="60" class="link_lan"><a href="?">管理首页</a></td>
              </tr>
          </table></td>
        </tr>
        <tr>
          <td width="18%" height="30" align="right" bgcolor="#FFFFFF" style="border-bottom:1px  #93C4DB dashed">充值金额：</td>
          <td width="82%" bgcolor="#FFFFFF" style="border-bottom:1px  #93C4DB dashed">
		  <input name="amount" type="text" maxlength="8" style="width:130px; height:14px; line-height:14px; padding:3px; font-size:16px; font-family:Arial, Helvetica, sans-serif; color: #FF0000" onkeyup="if(event.keyCode !=37 && event.keyCode != 39) value=value.replace(/\D/g,'');show_payment(this.value)"onbeforepaste="clipboardData.setData('text',clipboardData.getData('text').replace(/\D/g,''))"/>
            元
            (单笔金额不能低于{#$QISHI.payment_min#} 元)&nbsp;&nbsp;&nbsp;&nbsp;<span style="color: #0033FF"><strong>1</strong>&nbsp;元&nbsp;=&nbsp;<strong>{#$QISHI.payment_rate#}</strong>&nbsp;{#$QISHI.points_quantifier#}{#$QISHI.points_byname#}</span></td>
        </tr>
        <tr id="company_payment" style="display:none;">
          <td height="30" align="right" bgcolor="#FFFFFF" style="border-bottom:1px  #93C4DB dashed">&nbsp;</td>
          <td bgcolor="#FFFFFF" style="border-bottom:1px  #93C4DB dashed">
		  <span id="show_val"></span>
		  &nbsp;</td>
        </tr>
		        <tr>
          <td  align="right" bgcolor="#F8FBFC"  >选择支付方式：</td>
          <td bgcolor="#F8FBFC">&nbsp;</td>
        </tr>
        <tr>
          <td height="30" colspan="2" valign="top" bgcolor="#F8FBFC" style="border-bottom:1px  #93C4DB dashed">
		  {#section name=payment loop=$payment#}
		    <div style="padding-left:125px; margin-bottom:10px; margin-top:2px;color: #666666" onmousemove="this.style.color='#FF0000'" onmouseout="this.style.color='#666666'">
		      <label>
		        <input type="radio" name="payment_name" value="{#$payment[payment].typename#}" id="payment_name"/>
		        <img src="{#$QISHI.site_dir#}include/payment/logo/{#$payment[payment].typename#}.gif" width="85" height="30" align="absmiddle" /> ({#$payment[payment].p_introduction#})</label>
		        </div>
		    {#/section#}</td>
          </tr>
        <tr>
          <td height="30" align="right" bgcolor="#FFFFFF">
            <input name="act" type="hidden" id="act" value="payment1" /></td>
          <td height="150" valign="top" bgcolor="#FFFFFF" ><input type="image" name="imageField" src="{#$QISHI.site_template#}images/application.gif" /></td>
        </tr>
      </table>
          </form>
    </td>
  </tr>
</table>
{#include file="footer.htm"#}
</body>
</html>
